package com.weiwu.weiwustore.pojo;

import com.weiwu.weiwustore.utils.DateUtil;
import lombok.Data;

import java.util.Date;

/**
 * 前端系统公告封装类
 */
@Data
public class NoticeListVo {
    private Integer id;
    private String title;
    private String content;
    private String time;
    private String createtime;
    private String updatetime;
    private String storeid;

    public NoticeListVo() {
    }

    public NoticeListVo(Integer id, String title, String content, Date time) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.time = DateUtil.getSimpleTime(time);
    }
    public NoticeListVo(Integer id, String title, String content, Date createtime,Date updatetime,String storeid) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.createtime = DateUtil.getSimpleTime(createtime);
        this.updatetime = DateUtil.getSimpleTime(updatetime);
        this.storeid = storeid;
    }
}
